//
//  MOUser.h
//  MobileOffice
//
//  Created by 冰冰 on 2019/6/19.
//  Copyright © 2019 com.idolmedia. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface MOUser : NSObject

//部门id
@property(nonatomic,copy)NSString *org_id;
//部门id
@property(nonatomic,copy)NSString *email;
//部门名称
@property(nonatomic,copy)NSString *org_name;
//手机号码
@property(nonatomic,copy)NSString *phone;
//返回信息
@property(nonatomic,copy)NSString *msg;
//user_id
@property(nonatomic,copy)NSString *user_id;
//用户账号
@property(nonatomic,copy)NSString *userName;
//用户密码
@property(nonatomic,copy)NSString *password;
//用户token
@property(nonatomic,copy)NSString *token;
//状态码 1：登录成功 0：登录失败
@property(nonatomic,copy)NSString *code;
//rolenumbers
@property(nonatomic,copy)NSString *rolenumbers;
//role_id
@property(nonatomic,copy)NSString *role_id;
//用户姓名
@property(nonatomic,copy)NSString *name;
//用户状态 0：正常 1：锁定
@property(nonatomic,copy)NSString *status;
//是否打开了手势密码 0：默认 1：未打开 2：已打开
@property(nonatomic,copy)NSString *openGesturePassword;
//是否有手势密码 0：没有 1：有
@property(nonatomic,copy)NSString *haveGesturePassword;


+ (instancetype)sharedMOUser;

+ (instancetype)initUserWithDict:(NSDictionary *)dict;

+ (instancetype)initUserWithStr:(NSString *)string withType:(NSString *)type;

/**
 清空数据
 */
+ (void)clearUser;

/**
 *  更新NSUserDefaults中存储的值
 *
 *  @param strValue 值
 *  @param key   键
 */
+ (void)updateStringValue:(NSString *)strValue forKey:(NSString *)key;




@end

NS_ASSUME_NONNULL_END
